Optimizing Design & Mitigating Risks For Mini-Grids In Africa